home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 8: LINUX Games / Linux Cubed Series 8 - LINUX Games.iso / games / x11 / rpg / crossfir.92 / crossfir / crossfire-0.92.5 / utils / Imakefile < prev    next >
Makefile  |  1996-07-24  |  2KB  |  68 lines

  1. /*   CrossFire, A Multiplayer game for X-windows
  2.  *
  3.  *   $Id: Imakefile,v 1.1 1994/02/09 01:27:05 master Exp master $
  4.  *
  5.  *   Copyright (C) 1992 Frank Tore Johansen
  6.  *
  7.  *   This program is free software; you can redistribute it and/or modify
  8.  *   it under the terms of the GNU General Public License as published by
  9.  *   the Free Software Foundation; either version 2 of the License, or
  10.  *   (at your option) any later version.
  11.  *
  12.  *   This program is distributed in the hope that it will be useful,
  13.  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
  14.  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  15.  *   GNU General Public License for more details.
  16.  *
  17.  *   You should have received a copy of the GNU General Public License
  18.  *   along with this program; if not, write to the Free Software
  19.  *   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  20.  *
  21.  *   The author can be reached via e-mail to frankj@ifi.uio.no.
  22.  */
  23.  
  24. #include "../config/crossfire.tmpl"
  25.  
  26. AllTarget(emptyrule)
  27.  
  28. DependTarget()
  29.  
  30. install:: install_scripts
  31.  
  32. install_scripts:
  33.     MakeDir($(ADMDIR))
  34.     MakeDir($(C_BINDIR))
  35.     rm -f $(ADMDIR)/flushlocks
  36.     sed s%xxxx%$(C_LIBDIR)%g <flushlocks >$(ADMDIR)/flushlocks
  37.     chmod 755 $(ADMDIR)/flushlocks
  38.     rm -f $(C_BINDIR)/crossloop.pl 
  39.     sed s%BINDIR%$(C_BINDIR)%g <crossloop.pl >$(C_BINDIR)/crossloop.pl 
  40.     chmod 755 $(C_BINDIR)/crossloop.pl 
  41.     rm -f $(C_BINDIR)/crossrem.pl
  42.     sed s%BINDIR%$(C_BINDIR)%g <crossrem.pl >$(C_BINDIR)/crossrem.pl
  43.     chmod 755 $(C_BINDIR)/crossrem.pl
  44.     rm -f $(C_BINDIR)/tcpsockets.pl $(C_BINDIR)/gensym.pl
  45.     cp tcpsockets.pl gensym.pl $(C_BINDIR)
  46.     rm -f $(C_BINDIR)/crossloop
  47.     cp crossrem.pl tcpsockets.pl gensym.pl $(C_BINDIR)
  48.     sed s%BINDIR%$(C_BINDIR)%g <crossloop >$(C_BINDIR)/crossloop
  49.     chmod 755 $(C_BINDIR)/crossloop
  50.  
  51. clean::
  52.  
  53. depend::
  54.  
  55. /* modified by Petri.Heinila@lut.fi */
  56.  
  57. /* InstallScript(ad2c,$(C_BINDIR)) */
  58.  
  59. InstallScript(mktable,$(C_BINDIR))
  60.  
  61. InstallScript(mapconv,$(C_BINDIR))
  62.  
  63. FILES = Imakefile ad2c.script mktable.script mapconv.script crossloop \
  64.     crossloop.pl crossrem.pl flushlocks gensym.pl \
  65.     tcpsockets.pl
  66.  
  67. InsertArchive($(FILES),utils)
  68.